export interface responseData{
    "code": number,
    "message": string,
    "ok": boolean
}

// 验证码返回数据类型
export interface codeResponseData extends responseData{
    "data": string,
}

//登录返回数据类型
export interface loginResponseData extends responseData{
    "data": {
    "name": string,
        "token": string
}
}
//登录携带数据类型
export interface loginData {
    "code": string,
    "phone": string
}


// 用户信息的数据类型
export interface userInfoResponseData extends responseData{
    data:{
        "id": number,
        "createTime": string,
        "updateTime": string,
        "isDeleted": number,
        "param": any,
        "openid": null,
        "nickName": null,
        "phone": string,
        "name": string,
        "certificatesType": string,
        "certificatesNo": string,
        "certificatesUrl": string,
        "authStatus": number,
        "status": number
    }
}

//证件类型的数据类型
export interface documentType {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": any,
    "parentId": number,
    "name": string,
    "value": string,
    "dictCode": string,
    "hasChildren": boolean
}

export interface documentTypeResponseData extends responseData{
    data:documentType[]
}


//就诊人详细信息的返回数据类型
export interface visitorInfo{
    address: string,
    addressSelected:string[],
    birthdate: string,
    certificatesNo: string,
    certificatesType: string,
    contactsCertificatesNo: string,
    contactsCertificatesType: string,
    contactsName: string,
    contactsPhone: string,
    isInsure: number,
    isMarry: number,
    name: string,
    param: any,
    phone: string,
    sex: number,
    provinceCode:string,
    districtCode:string,
    cityCode:string
}


export interface visitorInfoResponseData extends responseData{
    data:visitorInfo
}